cmake_minimum_required(VERSION 3.12)
project(test)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

add_executable(select select.cpp)
target_link_libraries(select PRIVATE csapp)

add_executable(sem sem.cpp)
target_link_libraries(sem PRIVATE csapp)

add_executable(echoserver-pre echoserver-pre.cpp)
target_link_libraries(echoserver-pre PRIVATE csapp)

add_executable(psum-mutex psum-mutext.cpp)
target_link_libraries(psum-mutex PRIVATE csapp)

add_executable(tcpserv04 tcpserv04.cpp)
target_link_libraries(tcpserv04 PRIVATE csapp)

add_executable(tcpcli01 tcpcli01.cpp)
target_link_libraries(tcpcli01 PRIVATE csapp)

add_executable(tcpserv09 tcpserv09.cpp)
target_link_libraries(tcpserv09 PRIVATE csapp)
target_link_libraries(tcpserv09 PRIVATE net-common)

add_executable(tcpcli09 tcpcli09.cpp)
target_link_libraries(tcpcli09 PRIVATE csapp)
target_link_libraries(tcpcli09 PRIVATE net-common)

